<?php


/**
 * Exit if called outside of MediaWiki
 */
if( !defined( 'MEDIAWIKI' ) ) {
	echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
	die( 1 );
}



/**
 * Class and localisation
 *
 */

$dir = dirname(__FILE__) . '/';

$wgAutoloadClasses['TinCanAPIcouk'] = $dir . 'TinCanAPIcouk.body.php';
$wgExtensionMessagesFiles['TinCanAPIcouk'] = $dir  . 'TinCanAPIcouk.il8n.php';

/**
 * Credits
 *
 */

$wgExtensionCredits['other'][] = array(
	'path'           => __FILE__,
	'name'           => 'TinCanAPIcouk',
	'version'        => '0',
	'author'         => 'Andrew Downes',
	'descriptionmsg' => 'to be completed',
	'url'            => 'http://www.tincanapi.co.uk',
);

/**
 * Call the hooks
 *
 */

$wgHooks['BeforePageDisplay'][] = 'TinCanAPIcouk::pageView';
$wgHooks['GetPreferences'][] = 'TinCanAPIcouk::addPrefences';

?>
